Skip to content
This repository has been archived by the owner on Jan 19, 2023. It is now read-only.

fix deployment for cloudscale-metrics-collector #23

Merged
merged 1 commit into from
Nov 28, 2022

Conversation

mweibel
Copy link
Contributor

@mweibel mweibel commented Nov 22, 2022

Summary

Adds missing update for new configuration options since #22 got merged.

Checklist

  • Categorize the PR by setting a good title and adding one of the labels:
    bug, enhancement, documentation, change, breaking, dependency
    as they show up in the changelog
  • Update tests.
  • Link this PR to related issues.

@mweibel mweibel added the enhancement New feature or request label Nov 22, 2022
Copy link

@glrf glrf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you reference the correct secret

component/class/defaults.yml Outdated Show resolved Hide resolved
component/component/main.jsonnet Show resolved Hide resolved
@mweibel mweibel force-pushed the cloudscale-metrics-collector branch from 66ed155 to 9e8fdb0 Compare November 22, 2022 15:07
Copy link

@glrf glrf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now I think. You might want to enable multi instancing support if we need to instance this exporter for every zone. See: https://syn.tools/commodore/reference/architecture.html#_component_instantiation

Maybe someone who's more familiar with the architecture should take a look at this too though

@mweibel
Copy link
Contributor Author

mweibel commented Nov 24, 2022

LGTM now I think. You might want to enable multi instancing support if we need to instance this exporter for every zone. See: https://syn.tools/commodore/reference/architecture.html#_component_instantiation

this is enabled in the exoscale metrics collector but I don't really understand it tbh. Probably because I'm not familiar enough with commodore and our deployment setup. Not sure if @Kidswiss knows more if we need this or not?

@Kidswiss
Copy link

@mweibel This change to the metrics collector is so, that each instance will only handle exactly one cluster where the cloudscale appcat services are deployed.

We currently have two clusters where this is the case, appuio cloudscale and appuio exoscale. So in order to get the metrics of all the clusters, we would need two instances of this deployed on the appuio cloudscale cluster (where the database currently lives).

I know that's a rather suboptimal approach, but once we have an actual API for the billing, we can then deploy the collectors to each cluster.

@mweibel mweibel force-pushed the cloudscale-metrics-collector branch from 9e8fdb0 to 69910ac Compare November 24, 2022 08:52
@mweibel
Copy link
Contributor Author

mweibel commented Nov 24, 2022

added multi instance - hope that's done the right way?

@mweibel mweibel force-pushed the cloudscale-metrics-collector branch from 69910ac to 578e872 Compare November 24, 2022 08:55
@mweibel
Copy link
Contributor Author

mweibel commented Nov 24, 2022

ah wait, nvm - still need another change.

@mweibel mweibel force-pushed the cloudscale-metrics-collector branch 2 times, most recently from 3dc877a to 2bcceda Compare November 24, 2022 09:44
@mweibel
Copy link
Contributor Author

mweibel commented Nov 24, 2022

ok all good now.

@mweibel mweibel force-pushed the cloudscale-metrics-collector branch from 2bcceda to 7b5dfea Compare November 24, 2022 16:05
@mweibel mweibel force-pushed the cloudscale-metrics-collector branch from 7b5dfea to 656d71e Compare November 24, 2022 16:06
@mweibel
Copy link
Contributor Author

mweibel commented Nov 24, 2022

after discussion with @zugao we decided to keep image v0.4.1 as the version to deploy for the image and first test the multi instance deployment. This also ensures when merging this and updating it in the catalog, we can test first multi instance deployment and only afterwards the k8s API changes.

Copy link
Contributor

@zugao zugao left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@mweibel mweibel merged commit 4ae38b1 into master Nov 28, 2022
@mweibel mweibel deleted the cloudscale-metrics-collector branch November 28, 2022 06:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants